<template>
  <div>
    <div class="nav-wrap">
      <ul class="nav w1400">
        <li>
          <router-link active-class="on" :to="{ name: 'home' }"
            >首页</router-link
          >
        </li>
        <li>
          <router-link active-class="on" :to="{ name: 'jieshao' }"
            >介绍</router-link
          >
        </li>
        <li>
          <router-link exact-active-class="on" to="/about">关于</router-link>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
@import "../assets/css/vars.scss";
.nav-wrap {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.nav {
  height: px2vw(80);
  display: flex;
  align-items: center;

  li {
    height: 100%;
  }

  a {
    display: flex;
    align-items: center;
    height: 100%;
    padding-right: px2vw(20);
    padding-left: px2vw(20);
    &.on {
      background-color: $color;
      color: #fff;
    }
  }
}
</style>
